package cn.dz.service.impl;

import cn.dz.dao.UserDao;
import cn.dz.service.UserService;

/**
 * @ClassName UserServiceImpl
 * @package: cn.dz.service.impl
 * @Description UserServiceImpl
 * @Author dz
 * @Date 2025/1/22 12:44
 * @Version 1.0
 **/
public class UserServiceImpl implements UserService {

    public UserServiceImpl() {
        System.out.println("UserServiceImpl无参构造方法执行");
    }

    public UserServiceImpl(String name) {
        System.out.println("UserServiceImpl有参构造方法执行");
    }

    // BeanFactory去调用方法 从容器中获取userDao设置到此处
    public void setUserDao(UserDao userDao) {
        System.out.println("BeanFactory去调用方法获得userDao设置到此处:" + userDao);
    }
}
